package com.candy.util;

import com.candy.service.IAccountService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Client {
    public static void main(String[] args) {

        ApplicationContext ac=new ClassPathXmlApplicationContext("bean.xml");
       IAccountService accountService=(IAccountService) ac.getBean("AccountService");
       accountService.saveAccount();



    }
}
